 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ taglib prefix="s" uri="/struts-tags"%>
<head>
</head>
<body>
<form action="updateNodeAttribute.action" method="post">
 <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
    <thead>
        <tr>
            <th style="text-align: center;" align="center">Serial</th>
            <th>Node Id</th>
            <th>Make Name</th>
            <th>Scenario</th>
            <th>Max. Value</th>
            <th>Min. Value</th>
            <th>Active?</th>
        </tr>
    </thead>
    <tbody>
	<s:iterator value="attributeList" id="attributeLst" status="indx">          
    <tr>
         <td style="text-align: center;"><s:property value="#indx.count"/></td>
         <td style="text-align: center;">
         		<s:property value="nodeId"  />
                <input type="hidden" name="attribute[<s:property value="#indx.index"/>].nodeId" value="<s:property value='nodeId'  />" />
         </td>
         <td style="text-align: left;">
         		<s:property value="makeName"  />
         		<input type="hidden" name="attribute[<s:property value="#indx.index"/>].makeId" value="<s:property value='makeId'  />" />
         </td>
         <td style="text-align: center;">
         	<s:property value="scenarioName"  />
         	<input type="hidden" name="attribute[<s:property value="#indx.index"/>].scenarioId" value="<s:property value='scenarioId'  />" />
         </td>
         <td style="text-align: center;">
         	<input type="text" style="width: 80px;text-align: center;" name="attribute[<s:property value="#indx.index"/>].maxValue" value="<s:property value='maxValue' />" />
         </td>
         <td style="text-align: center;">
         	<input type="text" style="width: 80px;text-align: center;" name="attribute[<s:property value="#indx.index"/>].minValue" value="<s:property value='minValue' />" />
         </td>
         <td style="text-align: center;">
				<input type="radio"  name="attribute[<s:property value="#indx.index"/>].visibilityFlag" id="visibilityYes<s:property value="#indx.count"/>" value="1" <s:if test="#attributeLst.visibilityFlag == 1">checked="checked"</s:if>  />&nbsp;&nbsp;Active
				<input type="radio"  name="attribute[<s:property value="#indx.index"/>].visibilityFlag" id="visibilityNo<s:property value="#indx.count"/>" value="0" <s:if test="#attributeLst.visibilityFlag == 0">checked="checked"</s:if>   />&nbsp;&nbsp;Inactive          
         </td>
     </tr>
     </s:iterator>
	
	 </tbody>
</table>
<div class="form-row row-fluid">
	<div class="span12">
		<div class="row-fluid">
			<div class="form-actions">
			<div class="span12 controls">
			    <center>
					<button type="submit" class="btn marginR10">Save changes</button>
				</center>
			</div>
			</div>
		</div>
	</div> 
</div>
</form>
</body> 
</html>                                    